﻿
function aceptar() {
    if (document.getElementById("hdfDato") != null) window.returnValue = document.getElementById("hdfDato").value;
    window.close();
    return false;
}

function cancelar() {
    window.returnValue = null;
    window.close();
    return false;
}

function maximizarVentana() {
    top.window.moveTo(0, 0);
    if (document.all) { top.window.resizeTo(screen.availWidth, screen.availHeight); }
    else if (document.layers || document.getElementById) {
        if (top.window.outerHeight < screen.availHeight || top.window.outerWidth < screen.availWidth) {
            top.window.outerHeight = top.screen.availHeight;
            top.window.outerWidth = top.screen.availWidth;
        }
    }
}

function Cerrar() {
    var ven = window.self;
    ven.opener = window.self;
    ven.close();
}
